<include file="Public:header" />
<div id="zoneHeader">
    <h2>充值管理</h2>
    <ul>
    </ul>
</div><!--/#zoneHeader-->
<div id="zoneBody">
    <div id="zoneBodySearch">
        <form id="formSearch" action="?m={$Think.const.MODULE_NAME}">
            <input type="hidden" name="sort" />
            <input type="hidden" name="sortdir" />
            <ul>
                <li><b>
                    <select name="search_item_1">
                        <option value="uid">会员编号</option>
                        <option value="user_name">会员名称</option>
                    </select> ：</b>
                    <input type="text" name="search_item_val_1" class="fW100p" />
                </li>
                <li><b>充值完成日期：</b><input type="text" name="finish_date" class="fW80p" /></li>
                <li>
                    <select name="r_status">
                        <option value="">充值类型</option>
                        <volist name=":C('RECHARGE_TYPES_3')" id="vo">
                        <option value="{$key}">{$vo}</option>
                        </volist>
                    </select>
                </li>
                <li>
                    <select name="user_type">
                        <option value="">会员类型</option>
                        <volist name=":C('USER_TYPE')" id="vo">
                        <option value="{$key}">{$vo}</option>
                        </volist>
                    </select>
                </li>
                <li><button type="button" id="as" class="btnSearch">查询</button></li>
                <li><button type="button" class="btnResetForm">清空表单</button></li>
            </ul>
        </form>
    </div><!--/#zoneBodySearch-->
    <div id="zoneBodyContent">
        <form id="payLogListForm">
        <table class="table2">
            <thead>
                <tr>
                    <th>编号</th>
                    <th><a href="javascript:;" sort="user_name">会员名称</a></th>
                    <th><a href="javascript:;" sort="user_type">会员类型</a></th>
                    <th class="tAr">金额</th>
                    <th><a href="javascript:;" sort="create_time">充值发起时间</a></th>
                    <th><a href="javascript:;" sort="finis_time">充值完成时间</a></th>
                    <th><a href="javascript:;" sort="status">类型</a></th>
                    <th><a href="javascript:;" sort="comment">备注</a></th>
                    <th><a href="javascript:;" sort="operator">操作人</a></th>
                    <th>操作</th>
                </tr>
            </thead>
            <volist name="page.record" id="vo">
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.user_name}&nbsp;[<a href="javascript:Recharge.add('{$vo.user_name}', {$vo.user_type})">+/-</a>]</td>
                <td>{$vo.user_type|getUserTypeCn}</td>
                <td class="tAr">{$vo.money}</td>
                <td>{$vo.create_time}</td>
                <td>{$vo.finish_time}</td>
                <td>{$vo.type|getRechargeTypeCn}</td>
                <td>{$vo.comment}</td>
                <td>{$vo.operator}</td>
                <td class="tAction">
                    <if condition="$vo.type EQ 3">
                    <a href="javascript:Recharge.deduct({$vo.id});">扣除</a>
                    </if>
                </td>
            </tr>
            </volist>
        </table>
        </form>
    </div><!--/#zoneBodyContent-->
</div><!--/#zoneBody-->
<div id="zoneFooter">{:W('Page/info', [$page])}</div><!--/#zoneFooter-->
<include file="Public:footer" />
